/** @odoo-module **/

import { FormController } from "@web/views/form/form_controller";
import { registry } from "@web/core/registry";

export class MyFormController extends FormController {
    setup() {
        super.setup();

        console.log("我的自定义 setup 逻辑");
      //  this.props.archInfo.activeActions.edit=false
    }
}

// 注册新 controller
registry.category("views").add("my_form_view", {
    ...registry.category("views").get("form"),
    Controller: MyFormController,
});
